/* server.h */

/************************************************************************************
*                    Copyright Aquantia Corporation
*                              Freeware
*
* Description:
*
*   This file defines the TCP server start function
*
************************************************************************************/

/*! \file
    This file defines the TCP server start function
*/

#ifndef AQ_SERVER_TOKEN
#define AQ_SERVER_TOKEN

#include <stdio.h>

/*! \defgroup Server Server
This module contains the functions and data structures for the server and the main() program.
@{*/


/*! The main function for the TCP server.  This is designed to be called as a daemon,
    handles both TCP relay to the local hwInterface as well as discovery. 
    This function also sets the output system of server execution. 
    Returns non-zero value on failure. */
int runServer
(
  unsigned int verbose,    /*!< When set, this dumps additional debug information to the FILE handle verboseOutput. */
  FILE* verboseOutput,     /*!< The FILE handle where debugging information is written to. Typically use stdout. */
  FILE* errorOutput        /*!< The FILE handle where error information is written to. Typically use stderr. */
);

/*@}*/

#endif
